import { FaLinux, FaWindows, FaApple } from 'react-icons/fa6';
import RootLayout from 'layouts/RootLayout.astro';
import MarkdownLayout from 'layouts/MarkdownLayout.astro';
import Ads from 'components/ads/Ads.astro';
import { ADS_SLOTS } from 'collections/app';

<RootLayout>
  <MarkdownLayout>
    <div class="p-4 md:ps-24">
      <h2 class="h2">Package Managers</h2>
      Spotube is available in various Package Managers supported by Platform
      ## <FaLinux className="inline" /> Linux
      ### Flatpak📦
      Make sure [Flatpak](https://flatpak.org) is installed in your Linux device & Run the following command in the terminal:
      ```bash
      $ flatpak install com.github.KRTirtho.Spotube
      ```
      ### Arch User Repository (AUR)♾️
      If you're an Arch Linux user, you can also install Spotube from AUR.
      Make sure you have `yay`/`pamac`/`paru` installed in your system. And Run the Following command in the Terminal:
      ```bash
      $ yay -Sy spotube-bin
      ```
      ```bash
      $ pamac install spotube-bin
      ```
      ```bash
      $ paru -Sy spotube-bin
      ```
      <Ads
        style="display:block; text-align:center;"
        adSlot={ADS_SLOTS.packagePageArticle}
        adLayout="in-article"
        adFormat="fluid"
        fullWidthResponsive={false}
      />
      ## <FaApple className="inline" /> MacOS
      ### Homebrew🍻
      Spotube can be installed through Homebrew. We host our own cask definition thus you'll need to add our tap first:
      ```bash
      $ brew tap krtirtho/apps
      $ brew install --cask spotube
      ```
      <Ads
        style="display:block; text-align:center;"
        adSlot={ADS_SLOTS.packagePageArticle}
        adLayout="in-article"
        adFormat="fluid"
        fullWidthResponsive={false}
      />
      ## <FaWindows className="inline" color="#00A2F0" /> Windows
      ### Chocolatey🍫
      Spotube is available in [community.chocolatey.org](https://community.chocolatey.org) repo. If you have chocolatey install in your system just run following command in an Elevated Command Prompt or PowerShell:
      ```powershell
      $ choco install spotube
      ```
      ### WinGet💫
      Spotube is also available in the Official Windows PackageManager WinGet. Make sure you have WinGet installed in your Windows machine and run following in a Terminal:
      ```powershell
      $ winget install --id KRTirtho.Spotube
      ```
      ### Scoop🥄
      Spotube is also available in [Scoop](https://scoop.sh) bucket. Make sure you have Scoop installed in your Windows machine and run following in a Terminal:
      ```powershell
      $ scoop bucket add extras
      $ scoop install spotube
      ```
    </div>
  </MarkdownLayout>
</RootLayout>